package cn.zhfeat.hatch.entity.sysuser;

import java.io.Serializable;
import java.util.Date;

public class SysRole implements Serializable{
    
	private static final long serialVersionUID = 1L;
  
    /** mycat生成唯一id*/
    private Long id;

    /** 创建时间*/
    private Date createTime;

    /** 更新时间*/
    private Date updateTime;

    /** 创建人id*/
    private Long createUserId;

    /** 删除时间*/
    private Date deleteTime;

    /** 删除标记*/
    private Integer isDeleted;

    /** 权限名称*/
    private String name;

    /** 描述*/
    private String description;

    /** 权限编码*/
    private String code;

    /** 最近操作人*/
    private String recentOperatingUser;

    /** 最近操作时间*/
    private Date recentOperatingTime;

    /** 第一次操作人*/
    private String firstOperatingUser;

    /** 权限id 0菜单权限 1按钮权限*/
    private Integer operation;

    /** 对接系统的id*/
    private Long productId;

    /** 对接系统的角色id*/
    private Long productRoleId;
    
    /** 企业ID 新增字段20180509  - ZhangHao*/
    private Long cid; 
    
    /** 外部应用权限(CRM权限ID、门店APP权限ID) 新增字段2018-05-23 - ZhangHao*/
    private String externalAuthority;
    
    /** 非数据库查询字段 请求方查询使用 - ZhangHao*/
    private Long roleUserCount; //角色下的员工

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getRecentOperatingUser() {
        return recentOperatingUser;
    }

    public void setRecentOperatingUser(String recentOperatingUser) {
        this.recentOperatingUser = recentOperatingUser == null ? null : recentOperatingUser.trim();
    }

    public Date getRecentOperatingTime() {
        return recentOperatingTime;
    }

    public void setRecentOperatingTime(Date recentOperatingTime) {
        this.recentOperatingTime = recentOperatingTime;
    }

    public String getFirstOperatingUser() {
        return firstOperatingUser;
    }

    public void setFirstOperatingUser(String firstOperatingUser) {
        this.firstOperatingUser = firstOperatingUser == null ? null : firstOperatingUser.trim();
    }

    public Integer getOperation() {
        return operation;
    }

    public void setOperation(Integer operation) {
        this.operation = operation;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductRoleId() {
        return productRoleId;
    }

    public void setProductRoleId(Long productRoleId) {
        this.productRoleId = productRoleId;
    }

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Long getRoleUserCount() {
		return roleUserCount;
	}

	public void setRoleUserCount(Long roleUserCount) {
		this.roleUserCount = roleUserCount;
	}

	public String getExternalAuthority() {
		return externalAuthority;
	}

	public void setExternalAuthority(String externalAuthority) {
		this.externalAuthority = externalAuthority;
	}
	
	
}